/* -------------------------------- 
G2R Mining Solutions - Footer CSS
Archivo: footer.css
Descripción: CSS específico para el footer reutilizable
-------------------------------- */

/* Footer Section */
footer {
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 60px 20px 40px;
}

.footer_section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer_section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--white-color);
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    text-align: center;
}

.footer_section .footer_logo {
    text-align: center;
    grid-column: 1 / -1;
    margin-bottom: 30px;
}

.footer_section .footer_logo a {
    display: inline-block;
    color: var(--white-color);
}

.footer_section .footer_logo a img {
    max-width: 200px;
    height: auto;
    margin-bottom: 15px;
}

.footer_section .footer_logo a h2 {
    font-weight: 600;
    font-size: 24px;
}

.footer_section .useful_links {
    text-align: center;
}

.footer_section .useful_links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_section .useful_links ul li {
    margin: 12px 0;
}

.footer_section .useful_links ul li a {
    color: var(--white-color);
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer_section .useful_links ul li a:hover {
    color: var(--dark-color);
    text-decoration: none;
    transform: translateX(5px);
}

.footer_section .contact_us {
    text-align: center;
}

.footer_section .contact_us ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer_section .contact_us ul li {
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer_section .contact_us ul li i {
    font-size: 20px;
    margin-top: 2px;
    color: var(--white-color);
    min-width: 20px;
}

.footer_section .contact_us ul li span {
    font-size: 16px;
    line-height: 1.5;
}

.footer_section .follow_us {
    text-align: center;
}

.footer_section .follow_us i {
    font-size: 28px;
    margin: 0 15px 10px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    display: inline-block;
    width: 50px;
    height: 50px;
    padding: 10px 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.footer_section .follow_us i:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}


.footer_section .follow_us #icon1:hover {
    color: #4267B2;
}

.footer_section .follow_us #icon2:hover {
    color: #000;
}

.footer_section .follow_us #icon3:hover {
    color: #E1306C;
}

.footer_section .follow_us #icon4:hover {
    color: #0077B5;
}

.footer_section .follow_us #icon5:hover {
    color: #FF0000;
}

/* Media Queries para Footer */

/* Tablet */
@media screen and (max-width: 1024px) {
    .footer_section {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer_section .footer_logo {
        grid-column: 1 / -1;
        text-align: center;
    }
}

/* Móvil */
@media screen and (max-width: 768px) {
    footer {
        padding: 40px 15px 25px;
    }
    
    .footer_section {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        text-align: center;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer_section .footer_logo {
        order: -1;
        margin-bottom: 20px !important;
        grid-column: 1 !important;
        text-align: center !important;
    }
    
    .footer_section .footer_logo a img {
        max-width: 140px;
        margin-bottom: 10px;
    }
    
    .footer_section h3 {
        font-size: 18px;
        margin-bottom: 20px;
        text-align: center;
        border-bottom: 2px solid rgba(255,255,255,0.3);
        padding-bottom: 8px;
    }
    
    .footer_section .useful_links,
    .footer_section .contact_us {
        text-align: center !important;
    }
    
    .footer_section .useful_links ul {
        text-align: center !important;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .footer_section .useful_links ul li {
        text-align: center !important;
    }
    
    .footer_section .useful_links ul li a {
        font-size: 15px;
        padding: 8px 0;
        text-align: center !important;
        display: block;
        width: 100%;
    }
    
    .footer_section .contact_us ul li {
        justify-content: center !important;
        text-align: center !important;
        max-width: 300px;
        margin: 15px auto;
        padding: 0 10px;
        display: flex;
        align-items: center;
    }
    
    .footer_section .contact_us ul li i {
        font-size: 18px;
        min-width: 25px;
    }
    
    .footer_section .contact_us ul li span {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .footer_section .follow_us {
        margin-top: 20px !important;
        text-align: center !important;
        grid-column: 1 !important;
    }
    
    .footer_section .follow_us i {
        font-size: 28px;
        margin: 0 6px 8px 6px;
        padding: 8px;
        width: 45px;
        height: 45px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    footer {
        padding: 30px 10px 20px;
    }
    
    .footer_section {
        gap: 25px;
    }
    
    .footer_section h3 {
        font-size: 17px;
        margin-bottom: 15px;
    }
    
    .footer_section .contact_us ul li {
        max-width: 260px;
        margin: 12px auto;
        padding: 0 5px;
    }
    
    .footer_section .follow_us i {
        font-size: 28px;
        width: 45px;
        height: 45px;
        margin: 0 6px 8px 6px;
    }
}
